package model;

public abstract class RegistrationValidator implements RegistrationValidationBehavior{
	
	private RegistrationValidationBehavior registrationValidationBehavior;
	
	public RegistrationValidator(RegistrationValidationBehavior registrationValidationBehavior){
		this.registrationValidationBehavior = registrationValidationBehavior;
	}
	
	@Override
	public void validate(Registration registration) throws Exception{
		registrationValidationBehavior.validate(registration);
	}
	

	

}
